<?php
// the location of global config file
define("GLOBAL_INC","../inc/config.inc.php");

// include the global include file
require_once(GLOBAL_INC);

function check_admin()
{
    if($_COOKIE['admin_allowed'] != true)
    {
        header("Location: http://".BASE_URL);
    }
}

?>
